﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Entities;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IStoreService" in both code and config file together.
    [ServiceContract]
    public interface IStoreService
    {
        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<Store> GetAll(bool lazyLoad);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        void DeleteStores(List<Store> stores);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        void Save(List<Store> stores);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        List<Store> GetByCountry(int countryId, bool lazyLoad);

        [OperationContract]
        [FaultContract(typeof(ARRExceptionDetail))]
        void SaveTempStores(List<TempStore> stores);
    }
}
